import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'
import modulea from './modulea'
Vue.use(Vuex) // Vue原型中会加入一个实例对象 $store

// 初始化store
const store = new Vuex.Store({
  state,
  getters,
  actions,
  mutations,
  modules:{
    a: modulea
  }
})

export default store